import { ApiProperty } from '@midwayjs/swagger';

export class CreateSubsystemDto {
  @ApiProperty({
    example: 'Subsystem A',
    description: '子系统名称，必须唯一',
  })
  name: string;

  @ApiProperty({
    example: 'This is Subsystem A.',
    description: '子系统描述，可选',
    required: false,
  })
  description?: string;
}

export class UpdateSubsystemDto {
  @ApiProperty({
    example: 'Updated Subsystem A',
    description: '更新后的子系统名称，可选',
    required: false,
  })
  name?: string;

  @ApiProperty({
    example: 'Updated description for Subsystem A.',
    description: '更新后的子系统描述，可选',
    required: false,
  })
  description?: string;
}
